{extend name="base" /}
{block name="css"}
{css href="__CSS__/news.css" /}
{/block}
{block name="body"}
<!-- 主要内容 开始 -->
<div class="weui-tab__bd-item">
    <header class="weui-navBar weui-navBar-fixed">
        <a href="javascript:history.go(-1);" class="weui-navBar-item">
            <i class="icon iconfont icon-fanhui"></i>
        </a>
        <div class="weui-center">
            <span class="weui-center-title">新闻</span>
        </div>
        <a href="javascript:;" class="weui-navBar-item actionsheet">
            <i class="icon iconfont icon-gengduo"></i>
        </a>
    </header>
    <div class="weui-panel__bd">
        {volist name="data" id="v" empty="$empty"}
        <a data-url="{$v.id|md6}" class="weui-media-box weui-media-box_appmsg">
            <div class="weui-media-box__hd">
                <img class="weui-media-box__thumb" src="{$v.img|default='__IMG__/logo_white.png'}" alt="{$v.name|default=''}">
            </div>
            <div class="weui-media-box__bd">
                <h4 class="weui-media-box__title">{$v.name|default=""}</h4>
                <p class="weui-media-box__desc">{$v.article_brief}</p>
            </div>
        </a>
        {/volist}
    </div>
    <div class="weui-loadmore">
        <i class="weui-loading"></i>
        <span class="weui-loadmore__tips">正在加载</span>
    </div>
</div>
<!-- 主要内容 结束 -->
{/block}
{block name="js"}
<script type="text/javascript">
  $(function () {
    $('.weui-media-box_appmsg').click(function(){
        var url = $(this).data('url');
        $.toast(url, "text");
    });
  });
</script>
{/block}